<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVolunteerApplyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //志愿者申请
        Schema::create('volunteer_apply', function (Blueprint $table) {
            $table->increments('id');
            $table -> string('realname')->nullable()->comment('姓名');
            $table->tinyInteger('sex')->default(0)->comment('性别，0：保密，1:男，2:女');
            $table -> string('id_card')->nullable()->comment('身份证');
            $table -> string('email')->nullable()->comment('用户邮箱');
            $table -> string('phone')->nullable()->comment('手机号');
            $table->string('province',64)->nullable()->comment('省份');
            $table->string('city',64)->nullable()->comment('城市');
            $table->string('area',64)->nullable()->comment('地区');
            $table->text('description')->nullable()->comment('个人描述');
            $table -> softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
